There is no point in making a D-Bus call if we are going to bail
out anyway.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2832>
const [uuid, parentWindow, options] = params;
try {
- const [serialized] = await this._proxy.GetExtensionInfoAsync(uuid);
-
if (this._prefsDialog)
throw new Error('Already showing a prefs dialog');
+ const [serialized] = await this._proxy.GetExtensionInfoAsync(uuid);
const extension = ExtensionUtils.deserializeExtension(serialized);
this._prefsDialog = new ExtensionPrefsDialog(extension);